package com.edu.app.service.sys.linkservices;

import com.edu.app.bean.core.SysUser;
import com.edu.app.bean.core.SysWxUser;
import com.edu.app.bean.linkbeans.SysUserWxUserBind;
import com.edu.app.exception.WechatBindException;
import com.edu.app.service.sys.BaseService;


import java.util.List;

public interface SysUserWxUserService extends BaseService<SysUserWxUserBind> {
    List<SysWxUser> getWxUserByUserId(Integer id);
    SysUserWxUserBind getUserWxUser(Integer user_id, Integer wxUser_id);
    SysWxUser getWxUser(String openId);
    SysUserWxUserBind createUserWxUserBind (SysUser sysUser,
                                            Integer tenant_id,
                                            String openid)
            throws WechatBindException;

    Integer deleteWxUserByUserId(Integer user_id);
    Integer deleteWxUserByWxUserId(Integer wxUser_id);
}
